package com.archetypus.projectschedule.web.people.bd;

import com.archetypus.projectschedule.common.dto.people.Person;
import com.archetypus.projectschedule.common.dto.people.PersonListHandler;
import com.archetypus.projectschedule.common.exceptions.ProjectSchedulerException;
import com.archetypus.projectschedule.core.people.sf.PersonSF;

public class PersonBD implements IPersonBD {

	public void createPerson(Person person) throws ProjectSchedulerException {
		PersonSF.getInstance().createPerson(person);
	}

	public void deletePerson(Person person) throws ProjectSchedulerException {
		PersonSF.getInstance().deletePerson(person);
	}

	public Person findPerson(Person person) throws ProjectSchedulerException {
		return PersonSF.getInstance().findPerson(person);
	}

	public PersonListHandler listPeople() throws ProjectSchedulerException {
		return PersonSF.getInstance().listPeople();
	}

	public void updatePerson(Person person) throws ProjectSchedulerException {
		PersonSF.getInstance().updatePerson(person);
	}

}
